package cn.xorange.commons.system.service.System;


import cn.xorange.commons.core.basic.service.IBaseService;
import cn.xorange.commons.system.entity.system.*;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

/**
 * @author : yangjian
 * @date : 2022/2/22
 */
public interface ISysRoleService extends IBaseService<SysRole> {

    int checkRoleNameUnique(SysRole sysRole);
    int checkRoleKeyUnique(SysRole sysRole);

    List<Long> getRoleMenuIds(Long roleId);
    List<Long> getRoleOrgIds(Long roleId);

    int deleteById(Long roleId);

    String getRoleNames(Set<String> roleKeys);

}
